Global Variables


Overview

Variables in Pog have limited scope - they cannot be used by other functions unless they are passed as parameters, or returned by a function. 

To allow scripts more flexible access to variables in other scripts Pog supports global variables via the Global package.

Global variables are also saved out in I-War 2 save games, and so are ideal for keeping track of data you wish saved out.

See the Global package reference for more information.